import numpy as np

names = np.array(["a","b","c","d","a","e"])

print( names == "a")

data = np.empty((6,4))

data[ names == "a" ] = 99

change_data = data.astype(np.int)

print(change_data)
print("=====================")
print(change_data[ [0,1,5,4] ])